<!-- 在输入框上添加 lay-filter -->
<input type="text" name="username" lay-filter="test" class="layui-input" lay-watch> 

<select name="select" lay-filter="select">
    <option value="">请选择</option>
    <option value="1">选项1</option>
    <option value="2">选项2</option>
</select> 